<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\BaseModel as Eloquent;

/**
 * Class UserLevel
 * 
 * @property int $id
 * @property int $hall_id
 * @property string $name
 * @property string $description
 * @property int $total
 * @property int $deposit_times_record
 * @property int $deposit_total_record
 * @property int $deposit_min_record
 * @property int $deposit_max_record
 * @property int $deposit_online_min_limit
 * @property int $deposit_online_max_limit
 * @property int $deposit_offline_min_limit
 * @property int $deposit_offline_max_limit
 * @property int $deposit_online_validbet_multi
 * @property int $deposit_offline_validbet_multi
 * @property int $withdraw_times_record
 * @property int $withdraw_total_record
 * @property int $withdraw_min_limit
 * @property int $withdraw_max_limit
 * @property int $withdraw_daily_times_limit
 * @property int $withdraw_daily_times_nofee_limit
 * @property int $withdraw_expenese_rate
 * @property int $withdraw_expenese_max_limit
 * @property int $withdraw_fee
 * @property int $nocheck_amount
 * @property \Carbon\Carbon $condition_deposit_begin_time
 * @property \Carbon\Carbon $condition_deposit_end_time
 * @property \Carbon\Carbon $condition_register_begin_time
 * @property \Carbon\Carbon $condition_register_end_time
 * @property int $condition_deposit_single
 * @property int $condition_deposit_total
 * @property int $condition_deposit_times
 * @property int $condition_withdraw_total
 * @property int $condition_withdraw_times
 * @property bool $is_default
 * @property bool $is_lock
 * @property string $remark
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 *
 * @package App\Models
 */
class UserLevel extends Eloquent
{
	protected $table = 'user_level';

	protected $casts = [
		'hall_id' => 'int',
		'total' => 'int',
		'deposit_times_record' => 'int',
		'deposit_total_record' => 'int',
		'deposit_min_record' => 'int',
		'deposit_max_record' => 'int',
		'deposit_online_min_limit' => 'int',
		'deposit_online_max_limit' => 'int',
		'deposit_offline_min_limit' => 'int',
		'deposit_offline_max_limit' => 'int',
		'deposit_online_validbet_multi' => 'int',
		'deposit_offline_validbet_multi' => 'int',
		'withdraw_times_record' => 'int',
		'withdraw_total_record' => 'int',
		'withdraw_min_limit' => 'int',
		'withdraw_max_limit' => 'int',
		'withdraw_daily_times_limit' => 'int',
		'withdraw_daily_times_nofee_limit' => 'int',
		'withdraw_expenese_rate' => 'int',
		'withdraw_expenese_max_limit' => 'int',
		'withdraw_fee' => 'int',
		'nocheck_amount' => 'int',
		'condition_deposit_single' => 'int',
		'condition_deposit_total' => 'int',
		'condition_deposit_times' => 'int',
		'condition_withdraw_total' => 'int',
		'condition_withdraw_times' => 'int',
		'is_default' => 'bool',
		'is_lock' => 'bool'
	];

	protected $dates = [
		'condition_deposit_begin_time',
		'condition_deposit_end_time',
		'condition_register_begin_time',
		'condition_register_end_time'
	];

	protected $fillable = [
		'hall_id',
		'name',
		'description',
		'total',
		'deposit_times_record',
		'deposit_total_record',
		'deposit_min_record',
		'deposit_max_record',
		'deposit_online_min_limit',
		'deposit_online_max_limit',
		'deposit_offline_min_limit',
		'deposit_offline_max_limit',
		'deposit_online_validbet_multi',
		'deposit_offline_validbet_multi',
		'withdraw_times_record',
		'withdraw_total_record',
		'withdraw_min_limit',
		'withdraw_max_limit',
		'withdraw_daily_times_limit',
		'withdraw_daily_times_nofee_limit',
		'withdraw_expenese_rate',
		'withdraw_expenese_max_limit',
		'withdraw_fee',
		'nocheck_amount',
		'condition_deposit_begin_time',
		'condition_deposit_end_time',
		'condition_register_begin_time',
		'condition_register_end_time',
		'condition_deposit_single',
		'condition_deposit_total',
		'condition_deposit_times',
		'condition_withdraw_total',
		'condition_withdraw_times',
		'is_default',
		'is_lock',
		'remark'
	];
}
